@extends('Index/vip/vip_base')
@section('con-right')
	<div class="pull-right">
		<div class="user-content__box clearfix bgf">
			<div class="title">订单中心-订单{{$order->o_id}}</div>
			<div class="order-info__box">
				<div class="order-addr">收货地址：<span class="c6">{{$order->address}}</span></div>
				<div class="order-info">
					订单信息
					<table>
						<tr>
							<td>订单编号：{{$order->o_id}}</td>
							<td>支付宝交易号：20175215464616164616</td>
							<td>创建时间：{{$order->date}}</td>
						</tr>
						<tr>
							<!-- <td>付款时间：2017-09-20 08:15:45</td> -->
							<!-- <td>成交时间：2017-09-20 08:25:45</td> -->
							<td></td>
						</tr>
					</table>
				</div>
				<div class="table-thead">
					<div class="tdf3">商品</div>
					<div class="tdf1">状态</div>
					<div class="tdf1">数量</div>
					<div class="tdf1">单价</div>
					<div class="tdf2">优惠</div>
					<div class="tdf1">总价</div>
					<div class="tdf1">运费</div>
				</div>
				<div class="order-item__list">
					@foreach($goods as $list)
					<div class="item">
						<div class="tdf3">
							<a href="/index/webpage/item_show?id={{$list->id}}"><div class="img"><img src="/upload/{{$list->img}}" alt="" class="cover"></div>
							<div class="ep2 c6">{{$list->name}}</div></a>
							<div class="attr ep">颜色分类：{{$list->color}}  尺码：{{$list->size}}</div>
						</div>
						<div class="tdf1">
							@if($list->state==0)
							<span>待付款</span>
							@elseif($list->state==1)
							<span>待发货</span>
							@elseif($list->state==2)
							<span>待收货</span>
							@elseif($list->state==3)
							<a href="/index/order/udai_order_evaluate?id={{$list->ogid}}">待评价</a><!-- 已确认收货 -->
							@elseif($list->state==4)
							<span>已评价</span>
							@else
							<span>订单已取消</span>
							@endif
						</div>
						<div class="tdf1">{{$list->num}}</div>
						<div class="tdf1">{{number_format($list->price,2)}}</div>
						<div class="tdf2">
							无
						</div>
						<div class="tdf1">{{number_format($list->price*$list->num,2)}}</div>
						<div class="tdf1">
							<div class="ep2">快递<br>¥0.00</div>
						</div>
					</div>
					@endforeach
				</div>
				<div class="price-total">
					<div class="fz12 c9">未使用优惠券<br>快递运费 ￥0.0</div>
					<div class="fz18 c6">实付款：<b class="cr">¥{{$order->cost}}</b></div>
					<div class="fz12 c9">（本单可获 <span class="c6">380</span> 积分）</div>
				</div>
			</div>
		</div>
	</div>
@endsection